cmake_minimum_required(VERSION 2.8)

project(tsosim)

set(projectname tsosim)

add_custom_target(
  version ALL
  COMMAND ${CMAKE_COMMAND} -P ${PROJECT_SOURCE_DIR}/version.cmake
)

##
include_directories( ${CMAKE_BINARY_DIR} ) 

set (files
  src/CombatLog.h 
  src/CombatLog.cpp
  src/Debug.h
  src/Debug.cpp
  src/Garrison.h
  src/Garrison.cpp
  src/SimParser.h
  src/SimParser.cpp
  src/Simulator.h
  src/Simulator.cpp
  src/Statistics.h
  src/Statistics.cpp
  src/Units.h
  src/Units.cpp
  src/Utils.h
  src/Utils.cpp
  src/main.cpp
)

add_executable(${projectname} ${files})

add_dependencies(${projectname} version)
